#[test]
fn rustc_no_trans() {
+ if !is_nightly() { return }
+
let p = project("foo")
.file("Cargo.toml", r#"
[package]
#[test]
fn message_format_json_forward_stderr() {
- if is_nightly() { return }
-
let p = project("foo")
.file("Cargo.toml", &basic_bin_manifest("foo"))
.file("src/main.rs", "fn main() { let unused = 0; }");
assert_that(p.cargo_process("rustc").arg("--bin").arg("foo")
- .arg("--message-format").arg("JSON").arg("--").arg("-Zno-trans"),
+ .arg("--message-format").arg("JSON"),
execs().with_status(0)
- .with_stderr_contains("[WARNING] the option `Z` is unstable [..]")
.with_json(r#"
{
"reason":"compiler-message",
"test":false
},
"features":[],
- "filenames":[],
+ "filenames":["[..]"],
"fresh": false
}
"#));